<?php 
session_start();
$_SESSION['look'];
$array = unserialize($_SESSION['look']);
include_once('function.php');
$db=new db(); 
$sql = $array;
$file ="look";
$map=array("物品編號",'預約用戶帳號','預約人姓名','內容','提交時間','回復內容','回復時間');//表头 
$db->toExcel($sql,$map,$file); 
?>